<template>
  <el-header>
    <div class="title">{{ label }}</div>
    <div>
      <el-button type="danger" icon="el-icon-switch-button" @click="handleExit">退出登录</el-button>
    </div>
  </el-header>
</template>

<script lang="ts" src="./header.ts" />

<style lang="less" scoped>
.el-header {
  background: #dbe9f6;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  .title {
    font-style: italic;
    font-size: 30px;
    font-weight: bolder;
    color: #ff2f00;
  }
}
</style>
